//
//  UIView+UPView.m
//  LoveFreshBee
//
//  Created by 王现涛 on 16/6/13.
//  Copyright © 2016年 王现涛. All rights reserved.
//

#import "UIView+UPView.h"

@implementation UIView (UPView)
-(void)setX:(int)x{
    CGRect rect=self.frame;
    rect.origin.x=x;
    self.frame=rect;
}
-(int)x{
    return self.frame.origin.x;
}
@end
